package com.miyuan.wm.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @ClassName SupplierEntity
 * @Description 供应商信息表
 */
@TableName("my_supplier")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class SupplierEntity implements Serializable {

    @TableId(type = IdType.AUTO, value = "id")
    private int id; // 数据库Id

    @TableField(value = "name")
    private String name; // 供应商名

    @TableField(value = "person_in_charge")
    private String personInCharge; // 负责人

    @TableField(value = "tel")
    private String tel; // 联系电话

    @TableField(value = "email")
    private String email; // 电子邮件

    @TableField(value = "address")
    private String address; // 供应商地址

}
